import axios from 'axios';


const req = axios.create({
    timeout: 600000
})
// 添加请求拦截器
req.interceptors.request.use(function (config) {
    const token = 'eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjczNzI5NDk3NDgzLCJ1c2VySWQiOjExLCJ1c2VybmFtZSI6IjM2MzMzIn0.yFBOL6Fm9cPkM9Hj94F9XmhpoNJt39FN2-TuSPegzLw';
    config.headers.Authorization = token
    return config;
}, function (error) {
    // 对请求错误做些什么
    return Promise.reject(error);
});




export default req